package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 【请填写功能名称】对象 exam_student
 *
 * @author ruoyi
 * @date 2022-11-20
 */
public class ExamStudent extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 考试id */
    @Excel(name = "考试id")
    private Long examId;

    /** 学生id */
    @Excel(name = "学生id")
    private Long studentId;

    /** 交卷时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "交卷时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date submitTime;

    /** 是否完成 */
    @Excel(name = "是否完成")
    private String isOk;

    /** 成绩 */
    @Excel(name = "成绩")
    private Long score;

    public void setExamId(Long examId)
    {
        this.examId = examId;
    }

    public Long getExamId()
    {
        return examId;
    }
    public void setStudentId(Long studentId)
    {
        this.studentId = studentId;
    }

    public Long getStudentId()
    {
        return studentId;
    }
    public void setSubmitTime(Date submitTime)
    {
        this.submitTime = submitTime;
    }

    public Date getSubmitTime()
    {
        return submitTime;
    }
    public void setIsOk(String isOk)
    {
        this.isOk = isOk;
    }

    public String getIsOk()
    {
        return isOk;
    }
    public void setScore(Long score)
    {
        this.score = score;
    }

    public Long getScore()
    {
        return score;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("examId", getExamId())
            .append("studentId", getStudentId())
            .append("submitTime", getSubmitTime())
            .append("isOk", getIsOk())
            .append("score", getScore())
            .toString();
    }
}
